<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <input type="text">
    <button id="link">跳转</button>
    <button id="reloadEle">刷新</button>
    <script>
        console.log(location.href);

        link.onclick = function () {
            location.href = "./07-history.html";
            // location.replace('https://www.woniuxy.com')
        }

        reloadEle.onclick = function () {
            location.reload();
        }

    </script>
</body>

</html>